package com.ywu.application.standard.apiService.data;

import com.ywu.application.standard.apiService.dto.ApiServiceInfoDto;
import com.ywu.application.standard.apiService.entity.ApiServiceInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ApiServiceRepository {
    void addApiServiceEntity(@Param("model") ApiServiceInfoEntity entity);

    void updateApiServiceEntity(@Param("model") ApiServiceInfoEntity entity);

    void deleteApiService(@Param("model") ApiServiceInfoEntity entity);

    ApiServiceInfoEntity getEntity(@Param("model") ApiServiceInfoEntity entity);

    int queryPageCount(@Param("model") ApiServiceInfoDto dto);

    List<ApiServiceInfoEntity> queryPageList(@Param("model") ApiServiceInfoDto dto);

    List<ApiServiceInfoEntity> queryApiServiceByApplicationId(@Param("model") ApiServiceInfoEntity search);
}
